<!DOCTYPE html>
<html>
    <head>
        <script>
            var fun1 = function(p1,p2) {
               result = p1 * p2;
              alert(result);

            }
            var fun2 =function(){
                 var i = 10;
                 var j = "abc";
                 result = i + j;
                alert(result);
            }
        </script>
    </head>
    <body>
        <input type="button" value="提交1" onclick="fun1(1,2)" >
        <input type="button" value="提交2" onclick="fun2()" >

    </body>
</html>